package mapa
{
	import com.google.maps.InfoWindowOptions;
	import com.google.maps.LatLng;
	import com.google.maps.MapEvent;
	import com.google.maps.MapMouseEvent;
	import com.google.maps.overlays.Marker;
	import com.google.maps.overlays.MarkerOptions;
	
	

	public class Miejsce extends com.google.maps.overlays.Marker
	{
		public var xy:LatLng;
		public var opis:String;
		public var nr:int;
		public var customOverlay:TooltipOverlay
		public var options:InfoWindowOptions;
		
		
		
		

		
		
		public function Miejsce(xy:LatLng,opis:String,nr:int,style:MarkerOptions)
		{
			
			
			super(xy,style);
			this.nr=nr;
			this.customOverlay= new TooltipOverlay(xy,opis);
			this.opis=opis;
			this.xy=xy;		
			
		}
		
		public function MarkerClick(event:MapEvent):void {		
			event.target.openInfoWindow(options);			
			
		} 
		
		
		
		
		
		
		
		
	}
}